package A2;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * <p>Title: Class to handle the OrderOfWidgets table in the db</p>
 * <p>Description: CS 343 Assignment #2</p>
 * @author Mike Harmon
 * @author Erik Olson
 * @author Casey Golla
 * @author Jack Freiermuth
 * @email michael.harmon@my.uwrf.edu
 * @email erik.olson@my.uwrf.edu
 * @email casey.golla@my.uwrf.edu
 * @email jack.freiermuth@my.uwrf.edu
 * @date November 4th 2013
 * @team 5
 */ 
@Entity
public class OrderOfWidgets {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long id;
	private double widget_1_quantity;
	private double widget_2_quantity;
	private double widget_3_quantity;
	private double widget_4_quantity;
	private double widget_5_quantity;
	private double widget_6_quantity;
	private double widget_7_quantity;
	private double widget_8_quantity;
	private double widget_9_quantity;
	private double widget_a_quantity;
	
	public long getID() {
		return id;
	}
	
	/**
	 * 
	 * @param widget_1_in
	 * @param widget_2_in
	 * @param widget_3_in
	 * @param widget_4_in
	 * @param widget_5_in
	 * @param widget_6_in
	 * @param widget_7_in
	 * @param widget_8_in
	 * @param widget_9_in
	 * @param widget_a_in
	 */
	public OrderOfWidgets(double widget_1_in, double widget_2_in, double widget_3_in, double widget_4_in, double widget_5_in, double widget_6_in, double widget_7_in, double widget_8_in, double widget_9_in, double widget_a_in) {
		widget_1_quantity = widget_1_in;
		widget_2_quantity = widget_2_in;
		widget_3_quantity = widget_3_in;
		widget_4_quantity = widget_4_in;
		widget_5_quantity = widget_5_in;
		widget_6_quantity = widget_6_in;
		widget_7_quantity = widget_7_in;
		widget_8_quantity = widget_8_in;
		widget_9_quantity = widget_9_in;
		widget_a_quantity = widget_a_in;
	}
	
	/**
	 * default constructor
	 */
	public OrderOfWidgets() {
		widget_1_quantity = 0;
		widget_2_quantity = 0;
		widget_3_quantity = 0;
		widget_4_quantity = 0;
		widget_5_quantity = 0;
		widget_6_quantity = 0;
		widget_7_quantity = 0;
		widget_8_quantity = 0;
		widget_9_quantity = 0;
		widget_a_quantity = 0;
	}
	
	@Override
	public String toString() {
		return "[Order widget_1: " + widget_1_quantity + ", widget_2: " + widget_2_quantity + ", widget_3: " + widget_3_quantity + ", widget_4: " + widget_4_quantity + ", widget_5: " + widget_5_quantity + ", widget_6: " + widget_6_quantity + ", widget_7: " + widget_7_quantity + ", widget_8: " + widget_8_quantity + ", widget_9: " + widget_9_quantity + ", widget_a: " + widget_a_quantity + " ]";
	}
	
	/*Last functions are getters and setters for widget quantities */

	public double getWidget_1_quantity() {
		return this.widget_1_quantity;
	}
	
	/**
	 * 
	 * @param widget_1_quantity
	 */
	public void setWidget_1_quantity(double widget_1_quantity) {
		this.widget_1_quantity = widget_1_quantity;
	}

	public double getWidget_2_quantity() {
		return this.widget_2_quantity;
	}

	/**
	 * 
	 * @param widget_2_quantity
	 */
	public void setWidget_2_quantity(double widget_2_quantity) {
		this.widget_2_quantity = widget_2_quantity;
	}

	public double getWidget_3_quantity() {
		return this.widget_3_quantity;
	}

	/**
	 * 
	 * @param widget_3_quantity
	 */
	public void setWidget_3_quantity(double widget_3_quantity) {
		this.widget_3_quantity = widget_3_quantity;
	}

	public double getWidget_4_quantity() {
		return this.widget_4_quantity;
	}

	/**
	 * 
	 * @param widget_4_quantity
	 */
	public void setWidget_4_quantity(double widget_4_quantity) {
		this.widget_4_quantity = widget_4_quantity;
	}

	public double getWidget_5_quantity() {
		return this.widget_5_quantity;
	}

	/**
	 * 
	 * @param widget_5_quantity
	 */
	public void setWidget_5_quantity(double widget_5_quantity) {
		this.widget_5_quantity = widget_5_quantity;
	}

	public double getWidget_6_quantity() {
		return this.widget_6_quantity;
	}

	/**
	 * 
	 * @param widget_6_quantity
	 */
	public void setWidget_6_quantity(double widget_6_quantity) {
		this.widget_6_quantity = widget_6_quantity;
	}

	public double getWidget_7_quantity() {
		return this.widget_7_quantity;
	}

	/**
	 * 
	 * @param widget_7_quantity
	 */
	public void setWidget_7_quantity(double widget_7_quantity) {
		this.widget_7_quantity = widget_7_quantity;
	}

	public double getWidget_8_quantity() {
		return this.widget_8_quantity;
	}

	/**
	 * 
	 * @param widget_8_quantity
	 */
	public void setWidget_8_quantity(double widget_8_quantity) {
		this.widget_8_quantity = widget_8_quantity;
	}

	public double getWidget_9_quantity() {
		return this.widget_9_quantity;
	}

	/**
	 * 
	 * @param widget_9_quantity
	 */
	public void setWidget_9_quantity(double widget_9_quantity) {
		this.widget_9_quantity = widget_9_quantity;
	}

	public double getWidget_a_quantity() {
		return this.widget_a_quantity;
	}

	/**
	 * 
	 * @param widget_a_quantity
	 */
	public void setWidget_a_quantity(double widget_a_quantity) {
		this.widget_a_quantity = widget_a_quantity;
	}
}